#include<stdio.h>
int main()
{
    int max(int,int);
    int min(int,int);
    int (*p)(int,int);
    int choose,a,b,c;
    printf("please enter a and b\n");
    scanf("%d,%d",&a,&b);
    printf("please enter your choose,1 or 2?\n");
    scanf("%d",&choose);
    if(choose==1)p=max;
    else if(choose==2)p=min;
    c=(*p)(a,b);
    printf("a is %d b is %d\n",a,b);
    if(choose==1)printf("max is %d\n",c);
    else
        printf("min is %d\n",c);
}
int max(int a,int b)
{
    int z;
    if(a>b) z=a;
    else z=b;
    return z;
}
int min(int a,int b)
{
    int z;
    if(a<b)z=a;
    else z=b;
    return z;

}